.class Lcom/instagram/android/creation/b/bp;
.super Landroid/os/AsyncTask;
.source "FilterFragment.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/creation/b/al;


# direct methods
.method private constructor <init>(Lcom/instagram/android/creation/b/al;)V
    .locals 0
    .parameter

    .prologue
    .line 1087
    iput-object p1, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/android/creation/b/al;Lcom/instagram/android/creation/b/am;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1087
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/bp;-><init>(Lcom/instagram/android/creation/b/al;)V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Boolean;
    .locals 1
    .parameter

    .prologue
    .line 1091
    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->loadLibraries()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected a(Ljava/lang/Boolean;)V
    .locals 3
    .parameter

    .prologue
    .line 1096
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->s()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1098
    iget-object v0, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->j(Lcom/instagram/android/creation/b/al;)Landroid/os/Handler;

    move-result-object v0

    const/16 v1, 0xca1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 1099
    iget-object v0, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->b(Lcom/instagram/android/creation/b/al;)Lcom/instagram/ui/a/d;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->b(Lcom/instagram/android/creation/b/al;)Lcom/instagram/ui/a/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1100
    iget-object v0, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->b(Lcom/instagram/android/creation/b/al;)Lcom/instagram/ui/a/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 1103
    :cond_0
    const-string v0, "failed_to_load_library_filter_fragment"

    const-string v1, "failed_to_load_library_filter_fragment"

    invoke-static {v0, v1}, Lcom/instagram/g/c;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 1107
    new-instance v0, Lcom/instagram/ui/a/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-virtual {v1}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->error:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->unable_to_start:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->ok:I

    new-instance v2, Lcom/instagram/android/creation/b/bq;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/b/bq;-><init>(Lcom/instagram/android/creation/b/bp;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 1121
    :goto_0
    return-void

    .line 1119
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/bp;->a:Lcom/instagram/android/creation/b/al;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->a()V

    goto :goto_0
.end method

.method protected synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"

    .prologue
    .line 1087
    check-cast p1, [Ljava/lang/Void;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/instagram/android/creation/b/bp;->a([Ljava/lang/Void;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 1087
    check-cast p1, Ljava/lang/Boolean;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/instagram/android/creation/b/bp;->a(Ljava/lang/Boolean;)V

    return-void
.end method
